package net.aiform.template.pojo;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import net.aiform.pojo.Identity;

@Entity
@Table(name = "af_item")
public class Item extends Identity implements Serializable {
	private static final long serialVersionUID = -5588427715499713642L;
	private int position;
	@ManyToOne(cascade = CascadeType.REFRESH, optional = false)
	@JoinColumn(name = "opt", referencedColumnName = "id")
	private Option opt;

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public Option getOpt() {
		return opt;
	}

	public void setOpt(Option opt) {
		this.opt = opt;
	}

}
